#ifndef _MARIO_H_
#define _MARIO_H_
#include <d3dx9.h>
#include "Sprite.h"
#include "Game.h"



#define MARIO_VX	0.4
#define MARIO_VY	2.0
#define GRAVITY		0.01
#define ACCEL_X		0.004
#define BOTTOM		565


//#pragma once
/**-----------------------------------------------------------

* Program/Project : GameMario

* Written by :  

* Email : 
* Created date: 7/10/2012

* Modified by: 
* Modified date:
* Version: 1.0
* Description: Initialize class Mario
---------------------------------------------------------*/ 
class Mario
{
protected:
	Sprite* _sprRight;
	Sprite* _sprLeft;

	Sprite* _curSprite;

	//0: Left | 1: Right
	bool _turnLeft;
	bool _isJumping;
	bool _isAi;


	float _x;
	float _y;
	float _vx;
	float _vy;
	float _accelX;
	float _accelY;

public:
	Mario(float x, float y, bool isAi);
	~Mario(void);

	void Update(int time);
	void Render();
	void reset();

	void TurnLeft();
	void TurnRight();
	void Jump();
	
};

#endif
